$(document).ready(function(){
						   
	var validator = $("#frm_contact").validate({
		errorElement:'div',
		rules: {
			first_name: {
				required: true,
				character:true,
				maxlength: 50
				
			},
			last_name: {
				required: true,
				character:true,
				maxlength: 50
				
			},
			email: {
				required: true,
				email: true
			},
			
			phone: {
				required: true
			},
			comment: {
				required: true
			}
	
		},
		messages: {
			first_name: {
				required: "Enter your first name",
				character: "Please enter characters only",
				maxlength: "Name length should be maximum 50 characters"
			},
			last_name: {
				required: "Enter your last name",
				character: "Please enter characters only",
				maxlength: "Name length should be maximum 50 characters"
			},
			email: {
				required: "Enter email address",
				email: "Enter valid email address"
			},
			
			phone: {
				required: "Enter phone number"
			},
			comment: {
				required: "Enter your comment"
			}
		}
	});
	
	
	
});